home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS12.ADF / BLink / Manual.57 < prev    next >
Text File  |  1986-09-06  |  8KB  |  247 lines

  1. ============
  2. Introduction
  3. ============
  4.  
  5. BLINK is a linker written as a replacement for ALINK.  It is fully
  6. ALINK compatible accepting all command line options and WITH files. 
  7. BLINK supports many additional options not found in ALINK.
  8.  
  9. BLINK has been produce through the combined efforts of
  10.     The Software Distillery
  11.        currently comprised of:
  12.     Dave Baker
  13.     Ed Burnette
  14.     Stan Chow
  15.     Jay Denebeim
  16.     Gordon Keener
  17.     Jack Rouse
  18.     John Toebes
  19.     Doug Walker
  20.  
  21. It may be freely distributed provided:
  22.     1) No charge is made for its use or distribution
  23.     2) This manual is distributed along with the executable module
  24.     3) No modifications are made to the executable module
  25.  
  26. Failure to comply with these rules will simply work to convince people
  27. that there is no value in producing good freely redistributable software.
  28.  
  29. The latest version of BLINK and our other projects are available from
  30. our BBS:
  31.      Deep Thought     (919) 471-6436
  32. Address all correspondence to 
  33.      John Toebes
  34.      The Software Distillery
  35.      235 Trillingham Lane
  36.      Cary NC 27511
  37.  
  38. Let us know what you do and don't like about it.  There are several
  39. enhancements that WILL be out in the next major release:
  40.   * Overlay support
  41.   * Complete XREF of library references
  42.   * Additional hunk coalescing features
  43.   * More finely tuned code
  44.  
  45. ===========
  46. Using BLINK
  47. ===========
  48.  
  49. Command Line Syntax.
  50. --------------------
  51.  
  52. BLINK is driven by keyword parameters in any order indicating the
  53. action to be performed.  The basic syntax is:
  54.  
  55. BLINK [FROM][ROOT] files  [TO file][WITH file][VER file]
  56. [LIBRARY | LIB files][MAP file map_options][XREF file][options]
  57.  
  58. where:
  59.  file    means a single file
  60.  
  61.  files   means zero or more file names separated by a comma, plus sign
  62.          or space
  63.  
  64. and the following keywords are recognized:
  65.  
  66.  FROM files       - specifies the object files that are the primary
  67.                     input to the linker.  These object files will
  68.                     always be copied to the root of the object
  69.                     module.  You must specify at least one object file
  70.                     for the root.  If it appears as the first option
  71.                     to BLINK then the FROM keyword is optional and may
  72.                     be omitted.  ROOT is an acceptable synonym for FROM.
  73.                     FROM may be used more than once with the files for
  74.                     each FROM adding to the list of files to be linked.
  75.  
  76.  TO file          - specifies target object module to create.  If
  77.                     omitted it defaults to the same name as the first
  78.                     object module listed on a FROM option with its .o
  79.                     suffix removed.
  80.  
  81.  WITH file        - specifies a file containing BLINK command options
  82.                     to be processed for this link.  More than one WITH
  83.                     file may be specified as may WITH files contain
  84.                     WITH statements.  The contents of all with files
  85.                     will be treated as if they were specified on the
  86.                     BLINK command line.
  87.  
  88.  VER file         - a destination file to contain all linker output
  89.                     messages.  If you do not specify it then all
  90.                     messages go to the terminal.
  91.  
  92.  LIBRARY files    - specifies the files to be scanned as libraries. 
  93.                     Only referenced segments from library files will
  94.                     be included in the final object module.  LIB is a
  95.                     valid synonym for LIBRARY.
  96.  
  97.  XREF file        - specifies a file to which the cross reference
  98.                     information will be written.  If not specified
  99.                     and a cross reference is requested with the MAP
  100.                     option, the cross reference listing will appear as
  101.                     part of the map file.
  102.  
  103.  FASTER           - a do-nothing option that is included only for
  104.                     ALINK compatibility.
  105.  
  106.  VERBOSE          - causes BLINK to print out the names of each file
  107.                     as it processes it.
  108.  
  109.  NODEBUG          - supresses any HUNK_DEBUG, symbol table
  110.                     information or hunk names in the final object
  111.                     file.  This is equivalent to the object file
  112.                     that would be produced if STRIPA were run on the
  113.                     final object file
  114.  
  115.  SMALLDATA        - causes all DATA and BSS sections to be Coalesced
  116.                     into a single hunk.  This is useful for combining all
  117.                     data hunks from a program into a single hunk - decreasing
  118.                     load time but potentially producing larger hunks that are
  119.                     difficult to scatter load
  120.  
  121.  SMALLCODE        - causes all CODE hunks to be Coalesced into a single hunk.
  122.  
  123.  WIDTH n          - sets the maximum line length for the map and cross
  124.                     reference listings.  This is useful when sending
  125.                     the output to a divice that has different line
  126.                     length requirements.  If not specified it defaults
  127.                     to 80.
  128.  
  129.  MAP file options - specifies a file to which a map is to be written.
  130.                     options controls which parts of the map will be
  131.                     written.  See the MAP section for more information.
  132.  
  133.  OVERLAY          - specifies the start of an overlay tree terminated
  134.                     by a line consisting of a single pound sign '#'.
  135.                     See the OVERLAY section for more information.
  136.  
  137. Example Command Line Usage:
  138. ---------------------------
  139.  
  140. BLINK 
  141.  
  142. ==========
  143. WITH Files
  144. ==========
  145.  
  146. Example WITH files
  147. ------------------
  148.  
  149. ========
  150. Overlays
  151. ========
  152.  
  153. Not supported in this release
  154.  
  155. =========
  156. Map Files
  157. =========
  158. MAP <map file> <map options>
  159. <map options> are H S X F O PLAIN FANCY
  160. MAP [[filename],option,option,...]
  161.    filename   map output file
  162.    option     letter of report to produce (see below)
  163.  
  164. WIDTH n        columns allowed in map file (default 80)
  165. INDENT n    columns to indent on a line (included in width) (default 0)
  166.         default 0
  167. HEIGHT n    lines on a page in map file (0 indicates no pagenation)
  168.         (default 55)
  169. HWIDTH n    width of hunk names (default 8)
  170. FWIDTH n    width of file names (default 16)
  171. PWIDTH n    width of program unit names (default 8)
  172. SWIDTH n    width of symbol names (default 8)
  173. FANCY        flag to allow printer control characters in the map file
  174.         (this is the default condition)
  175. PLAIN        turns off the FANCY option
  176. BUFSIZE <n>
  177.  
  178. map:    map has sub keywords, they are:
  179.         h - MapHunk
  180.         s - MapSym
  181.         x - MapXref
  182.         f - MapFile
  183.         o - MapOvly
  184.     additionaly it will accept other keywords that
  185.     can have parameters:
  186.         width    - (1-132) def 80
  187.         height    - (1-255) def 55
  188.         Hwidth    - (1-255) def 8 (hunk name width)
  189.         Fwidth    - (1-255) def 16 (file name width)
  190.         Swidth    - (1-255) def 25 (Symbol width)
  191.         indent    - (1-255) def 0 (line indentation)
  192.  
  193.  
  194. ====================
  195. BLINK Error messages
  196. ====================
  197.   1 Parser failure.
  198.   2 Pass 1 failure.
  199.   4 Coalesce failure.
  200.   5 Map failure.
  201.   3 Pass 2 failure.
  202.   6 Symbol Initialization failure.
  203. 200 Out of memory!! 
  204. 300 Read error on file '%s' 
  205. 301 Write error on file '%s' 
  206. 400 *** Break: Blink terminating. 
  207. 425 Cannot find library %s 
  208. 426 Cannot find object %s 
  209. 444 Hunk_Symbol has bad %d symbol %s 
  210. 445 Invalid HUNK_SYMBOL %s 
  211. 446 Invalid symbol type %d for %s 
  212. 447 %s is a load file 
  213. 448 Invalid hunk #%d 
  214. 449 No hunk_end seen for %s 
  215. 501 Invalid Reloc 8 or 16 reference 
  216. 502 Distance for Reloc16 > 32768 
  217. 503 Distance for Reloc8 > 128 
  218. 504 Distance for Data Reloc16 > 32768 
  219. 505 Distance for Data Reloc8 > 128 
  220. 506 Can't locate resolved symbol %s 
  221. 507 Unknown Symbol type %d 
  222. 508 Symbol type %d unimplemented 
  223. 509 Unknown hunk type %d in Pass2 
  224. 600 Invalid command '%s' 
  225. 601 %s option specified more than once 
  226. 602 Unable to open map file '%s' 
  227. 603 %s is not a valid number 
  228. 604 with file is not readable 
  229. 605 Cannot open with file '%s' 
  230. 606 Unable to open output file '%s' 
  231. 607 No FROM/ROOT files specified 
  232. 999 Unknown internal error <<<let us know if you get this one
  233.  
  234. =============
  235. BLINK History
  236. =============
  237. 5.5 Released 18 August 1986
  238. 5.6 Released 20 August 1986
  239.    Fixed problem with map file generation
  240.    Fixed problem with map file error messages
  241. 5.6 Released 22 August 1986
  242.    Corrected incompatibilities with Lattice 3.02 and 3.03 generating extra
  243.       HUNK_ENDs.
  244.    Added TABS to the with file/command line parser
  245.    Fixed messages so last unresolved reference is not overwritten by VERBOSE
  246.       messages in PASS2.
  247.